package com.example.zz.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.zz.entity.Attestation;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.zz.mapper.AttestationMapper;
import com.example.zz.vo.PageVO;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * <p>
 * 用户认证 服务类
 * </p>
 *
 * @author ${author}
 * @since 2021-01-14
 */
public interface IAttestationService extends IService<Attestation> {

    /**
     * 角色分页查询用户认证信息接口
     * @param page
     * @param role
     * @return
     */
    PageVO<Attestation> seletAttestationPageByRole(Page page,Integer role);

    /**
     * 设置审核结果接口
     * @param result
     * @return
     */
    int updateAttestationResult(Long id,Integer role,Integer result);

    /**
     * 按照审核状体查找用户认证信息接口
     * @param page
     * @param result
     * @return
     */
    PageVO<Attestation> seletAttestationByResult(Page page,Integer role,Integer result);
}
